<style>
    #cell-2 { width: 430px; }
    #cell-2 dt { width: 140px; }
    #cell-2 dd { width: 250px; }
    #cell-3 { width: 350px; }
    #cell-3 dt { width: 110px; }
    #cell-3 dd { width: 200px; }
    #cell-4 { width: 400px; }
    #cell-4 dt { width: 110px; }
    #cell-4 dd { width: 250px; }
</style> 

<div class="vheader">
    <h1><?php echo $this->Resources->d->Resource ?></h1>
    <p><?php echo $this->translate("Resource") ?>
</div>

<div class="vcontent">
    
<div id="cell-2">
    <dl>
        <dt><?php echo $this->translate("Resource") ?></dt>
        <dd><?php echo $this->Resources->d->Resource ?></dd>
        <dt><?php echo $this->translate("Id") ?></dt>
        <dd><?php echo $this->Resources->d->ResourceId ?></dd>
        <dt><?php echo $this->translate("Public") ?></dt>
        <dd><?php echo $this->Resources->d->Public ?></dd>
        <dt><?php echo $this->translate("Roles") ?></dt>
        <dd>            
            <div style='max-height:105px; overflow:auto;'>
                <?php if($this->Resources->r->roles->count() == 0) echo '-' ?>
                <?php foreach($this->Resources->r->roles as $role) echo $role->Role .'<br />' ?>
            </div>
        </dd>
    </dl>
</div>

<div id="cell-3">
</div>

<div id="cell-4">
</div>
    
<?php if(Zend_Auth::getInstance()->getIdentity()->resources['admin.resource.add']) : ?>
<button id="Edit" name="Edit" type="button" onClick="window.location.href='/admin/resource/add/id/<?php echo $this->Resources->d->ResourceId ?>'">
    <?php echo $this->translate("Edit resource") ?>
</button>
<?php endif ?>

</div>    
    
<!-- Tooltips -->
<div data-dojo-type="dijit.Tooltip" data-dojo-props="connectId:'location',position:['below']">
    <?php echo $this->translate("Edit location data") ?>
</div>
<!-- Tooltips /-->